package com.xt.mvcpilot.service.impl;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.xt.core.BaseConstants;
import com.xt.core.exception.ObjectCanNotSaveException;

import com.xt.mvcpilot.dao.UserDao;
import com.xt.mvcpilot.data.User;
import com.xt.mvcpilot.service.UserService;



/**
 * class for the xtmvcpilot application
 * 
 * hibernate implementation service class to get user information
 * 
 * @author txiao
 * @version Revision: 1.0, Date: 07.06.2011
 *
 */

@Service("userService")
@Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
public class UserServiceImpl extends AppBasicServiceImpl<User, Long> implements UserService{

	
	private UserDao userDao;
	
	@Autowired
	public UserServiceImpl(UserDao userDao) {
		super(userDao);
		this.userDao = userDao;
	}

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	
}
